<%@page import="java.util.List"%>
<%@ page import="cn.ustb.entity.CourseSchedule" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>课程成绩</title>
	<link rel="stylesheet" href="layui-v2.8.4/layui/css/layui.css">
</head>
<body>

<ul class="layui-nav layui-bg-gray" lay-unselect="false">
	<li class="layui-nav-item">
		<a href="javascript:;">信息查询</a>
		<dl class="layui-nav-child">
			<dd><a href="<%=request.getContextPath()%>/teacherInformationServlet.do">个人信息</a></dd>
			<dd><a href="<%=request.getContextPath()%>/courseInformationServlet.do">课程信息</a></dd>
		</dl>
	</li>
	<li class="layui-nav-item">
		<a href="<%=request.getContextPath()%>/grade.do">成绩管理</a>
		<dl class="layui-nav-child">
			<dd><a href="<%=request.getContextPath() %>/addStudentGrade.jsp">录入成绩</a></dd>
		</dl>
	</li>
	<li class="layui-nav-item">
		<a href="<%=request.getContextPath()%>/modifypassword.jsp">修改密码</a>
	</li>
	<li class="layui-nav-item">
		<a href="<%=request.getContextPath()%>/logoutServlet">注销</a>
	</li>
	<li class="layui-nav-item">${sessionScope.user.name },您好！</li>
</ul>

	<table border="2" cellpadding="0" cellspacing="0">
		<tr>
			<th>学年学期</th>
			<th>学号</th>
			<th>周</th>
			<th>星期</th>
			<th>课程编号</th>
			<th>课程名称</th>
			<th>教师姓名</th>
			<th>教室</th>
		</tr>
		<%
			List<CourseSchedule> courseSchedules = (List<CourseSchedule>)request.getAttribute("courseSchedules");
		%>
		<%
			for(CourseSchedule courseSchedule : courseSchedules){

		%>
		<tr>
			<td><%= courseSchedule.getYearTerm()%></td>
			<td><%= courseSchedule.getStudentId()%></td>
			<td><%= courseSchedule.getWeek()%></td>
			<td><%= courseSchedule.getWeekday()%></td>
			<td><%= courseSchedule.getJoint()%></td>
			<td><%= courseSchedule.getCourse()%></td>
			<td><%= courseSchedule.getTeacher() %></td>
			<td><%= courseSchedule.getClassplace() %></td>
		</tr>
		<%
			}
		%>
	</table>

	<script src="layui-v2.8.4/layui/layui.js"></script>
	<link type="text/css" rel="stylesheet" href="layui-v2.8.4/layui/css/layui.css"/>
</body>
</html>